package com.ymatou.query.seller.trading.api.parameter;

import com.ymttest.common.entitie.BillInfo;
import com.ymttest.database.model.Ymt_Bill;

public class Ymt_BillExtension {
	public static BillInfo ConvertToBillInfo(Ymt_Bill o) {
		BillInfo i = new BillInfo();
		i.setBillId(o.getsBillId());
		i.setBillCode(o.getsBillCode());
		i.setBillSupplier(o.getsBillSupplier());
		i.setFromUserId(o.getiFromUserId());
		i.setToUserId(o.getiToUserId());
		i.setLogisticsStatu(o.getiLogisticsStatu());
		i.setBillFee(o.getfBillFee());
		i.setDeclareWeight(o.getfDeclareWeight());
		i.setDeclarePrice(o.getfDeclarePrice());
		i.setWeightChargeStatu(o.getiWeightChargeStatu());
		i.setWeightFee(o.getfWeightFee());
		i.setTxtChargeStatu(o.getiTxtChargeStatu());
		i.setTxtFee(o.getfTxtFee());
		i.setRealWeight(o.getfRealWeight());
		i.setTransferCenter(o.getsTransferCenter());
		i.setBillUrl(o.getsBillUrl());
		i.setInsure(o.getfInsure());
		i.setSenderAddress(o.getsSenderAddress());
		i.setSenderName(o.getsSenderName());
		i.setSenderPhone(o.getsSenderPhone());
		i.setReceiveAddress(o.getsReceiveAddress());
		i.setReceiveCity(o.getsReceiveCity());
		i.setReceiveProvince(o.getsReceiveProvince());
		i.setReceiveRegion(o.getsReceiveRegion());
		i.setReceiveEmail(o.getsReceiveEmail());
		i.setReceiveName(o.getsReceiveName());
		i.setReceivePhone(o.getsReceivePhone());
		i.setReceivePostcode(o.getsReceivePostcode());
		i.setAddTime(o.getdAddTime());
		i.setAction(o.getiAction());
		i.setGoodName(o.getsGoodName());
		i.setDelReason(o.getsDelReason());
		i.setDeclineReason(o.getsDeclineReason());
		i.setTransPortNo(o.getsTransPortNo());
		i.setWeightNotifyDateTime(o.getdWeightNotifyDateTime());
		i.setIdCardPic(o.getsIdCardPic());
		i.setSmallTicket(o.getsSmallTicket());
		i.setLogisticId(o.getiLogisticId());
		i.setSignLogisticId(o.getiSignLogisticId());
		i.setTransportServiceType(o.getiTransportServiceType());
		i.setServiceCost(o.getfServiceCost());
		i.setMatchIdPicTime(o.getdMatchIdPicTime());
		i.setDownloaded(o.isbDownloaded());
		return i;
	}
}
